<?php 
class RegisterForm extends Users{
    
    public $verifyPassword_repeat;
    public $verifyPassword;
    public $password_repeat;
    public $verifyCode;
    
    
    	public function rules()
	{

		return array(
			array('name, username, email, password', 'required'),
			array('name', 'length', 'max'=>255),
            array('email,username','unique'),
			array('username', 'length', 'max'=>150),
			array('email, password', 'length', 'max'=>100),
            array('email','email'),
            array('verifyCode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements()),
            array('password','compare'),
            array('password_repeat','safe'),
			array('id, name, username, email, password, usertype, block, sendEmail, registerDate, lastvisitDate, activation, forgotten_password_code, params', 'safe', 'on'=>'search'),
		);
	}
    	public function attributeLabels()
	{
		return array(
			'verifyCode'=>'Verification Code',
		);
	}
    
}
?>